package wangxiaotao.entity.schedule;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Map;

@Data
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TaskEntity implements Serializable {

    /**
     * 任务id
     */
    private int taskId;
    /**
     * 任务说明
     */
    private String desc;
    /**
     * cron 表达式
     */
    private String expression;

    private Map<String,Object> properties;

    public TaskEntity(int taskId, String desc, String expression) {
        this.taskId = taskId;
        this.desc = desc;
        this.expression = expression;
    }
}
